{extends file="../home.html"}
{block name="title"}{$head_title}{/block}

{block name="css"}
<!-- <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/front/front_css/refresh_load.css?version={$version}"/>
<link href="__PUBLIC__/Css/front/css/zhonchou_home.css?version={$version}" type="text/css" rel="stylesheet"> -->
<style type="text/css">
body{
	background: #F3F3F3;
}
.com_header{
	height: 2.2rem;
	font-size: 0.9rem;
	line-height: 1.25rem;
	padding: 0.45rem 0.6rem 0.5rem;
	background: rgba(248,248,248,0.98);
	box-sizing: border-box;
	text-align: center;
	border-bottom: 1px solid #E1E1E1;
	position: fixed;
	top:0;
	left:0;
	right: 0;
	z-index: 100;
	color: #575F67;
	font-weight: bold;
}
.com_header .go_back{
	padding: 0.6rem;
	position: absolute;
	left:0;
	top:0;
}
.com_header .go_back .icon_back{
	background: url(/Public/Images/img/icon_return_head.png) no-repeat;
	background-size: 100%  100%;
	width: 0.55rem;
	height: 1.0rem;
	display: block;
}
.ensure{
	font-size: .8rem;
	line-height: 1.1rem;
	font-weight: normal;
	position: absolute;
	right: 0.6rem;
	top:0.6rem;
	color: #FF6600;
	letter-spacing: 0;
}
h5{
	font-size: .6rem;
	line-height: .85rem;
	color: #B4B4B4;
	padding: .35rem .6rem;
}
.user_list{
	background: #fff;
	padding-left: .6rem;
}
.user_list li{
	border-bottom: 1px solid #EFEFEF;
	display: flex;
	align-items: center;
	padding-right: .6rem;
	padding-top: .5rem;
	padding-bottom: .5rem;
}
.user_list li img{
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
}
.user_list li .nickname{
	font-size: .7rem;
	line-height: 1rem;
	color: #333333;
	padding: 0 .4rem;
	flex:1;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.icon_nochoose{
	width: .85rem;
	height: .85rem;
	background: url(/Public/Images/img/icon_no_choose@3x.png) no-repeat;
	background-size:100% 100%;
	display: inline-block;
}
.user_list li.active .icon_nochoose{
	background: url(/Public/Images/img/choose@3x.png) no-repeat;
	background-size:100% 100%;
}
</style>
{/block}
{block name="content"}

	
	<div class="com_header">
		<a href="javascript:;" class="go_back"><i class="icon_back"></i></a>我关注的人<span class="ensure">确定</span>
	</div>
	<h5 style="margin-top: 2.2rem;">我关注了3人</h5>
	<ul class="user_list">
		<li>
			<img src="/Public/Images/img/Mask@3x.png" alt="">
			<span class="nickname">花花世界</span>
			<i class="icon_nochoose"></i>
		</li>
		<li>
			<img src="/Public/Images/img/Mask@3x.png" alt="">
			<span class="nickname">花花世界</span>
			<i class="icon_nochoose"></i>
		</li>
		<li>
			<img src="/Public/Images/img/Mask@3x.png" alt="">
			<span class="nickname">花花世界</span>
			<i class="icon_nochoose"></i>
		</li>
		<li>
			<img src="/Public/Images/img/Mask@3x.png" alt="">
			<span class="nickname">花花世界</span>
			<i class="icon_nochoose"></i>
		</li>
		<li>
			<img src="/Public/Images/img/Mask@3x.png" alt="">
			<span class="nickname">花花世界</span>
			<i class="icon_nochoose"></i>
		</li>
		<li>
			<img src="/Public/Images/img/Mask@3x.png" alt="">
			<span class="nickname">花花世界</span>
			<i class="icon_nochoose"></i>
		</li>
		<li>
			<img src="/Public/Images/img/Mask@3x.png" alt="">
			<span class="nickname">花花世界</span>
			<i class="icon_nochoose"></i>
		</li>
		<li>
			<img src="/Public/Images/img/Mask@3x.png" alt="">
			<span class="nickname">花花世界</span>
			<i class="icon_nochoose"></i>
		</li>
	</ul>
{/block}
{block name="js"}
	
{literal}
	
<script>
   // 
   $('.user_list li').on('click',function(){
   		
   		$(this).toggleClass('active');	
   })
   //确认
   $('.ensure').on('click',function(){
   		var has_active = $('.user_list li.active').size();
   		if(has_active>5){
   			alert('最多不能超过5个用户');
   		}else{
   			console.log(1);
   		}
   })
</script>
{/literal}
{/block}